home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Interfaces / CIncludes / Scrap.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-11  |  1.5 KB  |  75 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        Scrap.h
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a3  ETO #16, MPW prerelease.  Friday, November 11, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. */
  16.  
  17. #ifndef __SCRAP__
  18. #define __SCRAP__
  19.  
  20.  
  21. #ifndef __TYPES__
  22. #include <Types.h>
  23. #endif
  24. /*    #include <ConditionalMacros.h>                                */
  25.  
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29.  
  30. #if GENERATINGPOWERPC
  31. #pragma options align=mac68k
  32. #endif
  33.  
  34. #ifdef __CFM68K__
  35. #pragma lib_export on
  36. #endif
  37.  
  38. struct ScrapStuff {
  39.     long                            scrapSize;
  40.     Handle                            scrapHandle;
  41.     short                            scrapCount;
  42.     short                            scrapState;
  43.     StringPtr                        scrapName;
  44. };
  45. typedef struct ScrapStuff ScrapStuff;
  46.  
  47. typedef ScrapStuff *PScrapStuff, *ScrapStuffPtr;
  48.  
  49. extern pascal ScrapStuffPtr InfoScrap(void)
  50.  ONEWORDINLINE(0xA9F9);
  51. extern pascal long UnloadScrap(void)
  52.  ONEWORDINLINE(0xA9FA);
  53. extern pascal long LoadScrap(void)
  54.  ONEWORDINLINE(0xA9FB);
  55. extern pascal long GetScrap(Handle hDest, ResType theType, long *offset)
  56.  ONEWORDINLINE(0xA9FD);
  57. extern pascal long ZeroScrap(void)
  58.  ONEWORDINLINE(0xA9FC);
  59. extern pascal long PutScrap(long length, ResType theType, void *source)
  60.  ONEWORDINLINE(0xA9FE);
  61.  
  62. #ifdef __CFM68K__
  63. #pragma lib_export off
  64. #endif
  65.  
  66. #if GENERATINGPOWERPC
  67. #pragma options align=reset
  68. #endif
  69.  
  70. #ifdef __cplusplus
  71. }
  72. #endif
  73.  
  74. #endif /* __SCRAP__ */
  75.